package com.bao.work;

import java.util.Scanner;

/**
 * @author baoye
 * @date 2024-07-24/17:27
 */
public class StringClass03 {
    public static void main(String[] args) {
        String srcStr=new Scanner(System.in).nextLine();
        String delStr=new Scanner(System.in).next();
        String srcDelDel=srcStr.replace(delStr,"");
        System.out.println(srcDelDel);
    }
}
